clear 
clc
load Known.mat
[m, n] = size(data)
M = [m,n]
[ID, Name] = xlsread('data.xlsx')
temp = zeros(158,2)
temp = [ID, Name]
M_ID = str2num(char(temp(:,1)))
M_Name = temp(:,2)

result = string(zeros(m,2))
for i = 1:m
    t = data(i,1)
        for j = 1:158
        if M_ID(j,1) == t
            result(i,1) = M_Name(j,1)
            result(i,2) = M_ID(j,1)
        end
    end
end

disp('学号-姓名 请输入0    姓名-学号 请输入1 ')
judgement = input('')
if judgement == 0
    disp(result)
elseif judgement == 1
    R = string(zeros(m,1))
    R = result(:,2)
    result(:,2) = result(:,1)
    result(:,1) = R
end
disp('最终结果查看result表')